package com.example.wxordersystem.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author 常红伟
 */
@Data
public class OrderForm {

    /**
     * 买家姓名
     */
    @NotEmpty(message = "姓名必须填")
    private String name;

    /**
     * 买家电话
     */
    @NotEmpty(message = "买家电话必须填")
    private String phone;

    /**
     *买家地址
     */
    @NotEmpty(message = "买家地址必须填")
    private String address;

    /**
     * 买家微信ID
     */
    @NotEmpty(message = "买家微信ID必须填")
    private String openid;

    /**
     * 购物车
     */
    @NotEmpty(message = "购物车必须填")
    private String items;
}
